package com.feng.app.spider;

import java.util.HashSet;
import java.util.Iterator;

public class Check {
	
	/**
	 * 比较url，返回布尔
	 */
	public static boolean checkUrl(String url,HashSet<String> urls){
		
		boolean boo=false;
		
		Iterator<String> it=urls.iterator();
		//比较
		while(it.hasNext()){
			boo=boo|url.equals(it.next().toString());
		}
		
		return boo;
		
	}

}
